package com.my.ecommercesystem.utils;



import com.my.ecommercesystem.filter.LoginFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class LoginFilterConfig {
    @Bean
    public FilterRegistrationBean myfilterRegistrationBean() {
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(new LoginFilter());
        filterRegistrationBean.addUrlPatterns("/user_center_info");
        filterRegistrationBean.addUrlPatterns("/user_center_order");
        filterRegistrationBean.addUrlPatterns("/shopcar");
        return filterRegistrationBean;
    }


}
